<?php
namespace Client\Table;

use Zend\Db\Sql\Select;

class OrganizationAddrTable extends CommonTable
{

    protected $table = 'hy_organization_addr';

    protected $id = 'id';
    
    public function findAll()
    {
        $rowset = $this->select();
        $result = $rowset->toArray();
        return $result;
    }
    
    public function findAllByOrgId($id)
    {
        $rowset = $this->select(array(
            'org_id' => $id
        ));
        $result = $rowset->toArray();
        return $result;
    }
    
}